<?php 
/**
 *
 * Projet Authentic CMS
 * @file 	   index.php
 *
 * PHP version 5
 *
 *
 * @author     Poly Charly <CharlyPoly@gmail.fr>
 * @copyright  2009 Authentic Development Group
 * @license    GNU General Public License v3
 * @since      File available since Version 0.1.0
 * 
 */
define('INDEX', TRUE);
 
include('setPaths.php');

include(SYSTEM_DIR.'error'.DS.'error.php');
Error::init();

include('autoload.php');

$System = new System();

try {
	$System->start();
} catch (SiteClosed $e) {
	print($e);
	die();
} catch (Exception $e) {
	die($e->getMessage());
}

?>